package com.tcu.menu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("sbn_menu")
public class Menu {
    private String icon;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer sort;
    private Integer type;
    private String url;
//    表示 在数据库操作时，忽略这个字段
    @TableField(exist = false)
    private List<MenuItem> children;
}
